Optimal. Leaf size=121 \[ \frac {\left (8 a^2+4 a b+3 b^2\right ) x}{8 b^3}-\frac {a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh (c+d x)}{\sqrt {a}}\right )}{\sqrt {a-b} b^3 d}-\frac {(4 a+3 b) \cosh (c+d x) \sinh (c+d x)}{8 b^2 d}+\frac {\cosh (c+d x) \sinh ^3(c+d x)}{4 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 121, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3266, 481, 592,
536, 212, 214} \begin {gather*} -\frac {a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh (c+d x)}{\sqrt {a}}\right )}{b^3 d \sqrt {a-b}}+\frac {x \left (8 a^2+4 a b+3 b^2\right )}{8 b^3}-\frac {(4 a+3 b) \sinh (c+d x) \cosh (c+d x)}{8 b^2 d}+\frac {\sinh ^3(c+d x) \cosh (c+d x)}{4 b d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 214
Rule 481
Rule 536
Rule 592
Rule 3266
Rubi steps
\begin {align*} \int \frac {\sinh ^6(c+d x)}{a+b \sinh ^2(c+d x)} \, dx &=\frac {\text {Subst}\left (\int \frac {x^6}{\left (1-x^2\right )^3 \left (a-(a-b) x^2\right )} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {\cosh (c+d x) \sinh ^3(c+d x)}{4 b d}-\frac {\text {Subst}\left (\int \frac {x^2 \left (3 a+(a+3 b) x^2\right )}{\left (1-x^2\right )^2 \left (a+(-a+b) x^2\right )} \, dx,x,\tanh (c+d x)\right )}{4 b d}\\ &=-\frac {(4 a+3 b) \cosh (c+d x) \sinh (c+d x)}{8 b^2 d}+\frac {\cosh (c+d x) \sinh ^3(c+d x)}{4 b d}-\frac {\text {Subst}\left (\int \frac {-a (4 a+3 b)+\left (-4 a^2-a b-3 b^2\right ) x^2}{\left (1-x^2\right ) \left (a+(-a+b) x^2\right )} \, dx,x,\tanh (c+d x)\right )}{8 b^2 d}\\ &=-\frac {(4 a+3 b) \cosh (c+d x) \sinh (c+d x)}{8 b^2 d}+\frac {\cosh (c+d x) \sinh ^3(c+d x)}{4 b d}-\frac {a^3 \text {Subst}\left (\int \frac {1}{a+(-a+b) x^2} \, dx,x,\tanh (c+d x)\right )}{b^3 d}+\frac {\left (8 a^2+4 a b+3 b^2\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\tanh (c+d x)\right )}{8 b^3 d}\\ &=\frac {\left (8 a^2+4 a b+3 b^2\right ) x}{8 b^3}-\frac {a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh (c+d x)}{\sqrt {a}}\right )}{\sqrt {a-b} b^3 d}-\frac {(4 a+3 b) \cosh (c+d x) \sinh (c+d x)}{8 b^2 d}+\frac {\cosh (c+d x) \sinh ^3(c+d x)}{4 b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.32, size = 97, normalized size = 0.80 \begin {gather*} \frac {4 \left (8 a^2+4 a b+3 b^2\right ) (c+d x)-\frac {32 a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh (c+d x)}{\sqrt {a}}\right )}{\sqrt {a-b}}-8 b (a+b) \sinh (2 (c+d x))+b^2 \sinh (4 (c+d x))}{32 b^3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(416\) vs.
\(2(107)=214\).
time = 1.26, size = 417, normalized size = 3.45
method | result | size |
risch | \(\frac {x \,a^{2}}{b^{3}}+\frac {a x}{2 b^{2}}+\frac {3 x}{8 b}+\frac {{\mathrm e}^{4 d x +4 c}}{64 b d}-\frac {a \,{\mathrm e}^{2 d x +2 c}}{8 b^{2} d}-\frac {{\mathrm e}^{2 d x +2 c}}{8 b d}+\frac {a \,{\mathrm e}^{-2 d x -2 c}}{8 b^{2} d}+\frac {{\mathrm e}^{-2 d x -2 c}}{8 b d}-\frac {{\mathrm e}^{-4 d x -4 c}}{64 b d}+\frac {\sqrt {a \left (a -b \right )}\, a^{2} \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {a \left (a -b \right )}+2 a -b}{b}\right )}{2 \left (a -b \right ) d \,b^{3}}-\frac {\sqrt {a \left (a -b \right )}\, a^{2} \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {a \left (a -b \right )}-2 a +b}{b}\right )}{2 \left (a -b \right ) d \,b^{3}}\) | \(246\) |
derivativedivides | \(\frac {\frac {1}{4 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{4}}+\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}-\frac {4 a +b}{8 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {4 a +3 b}{8 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}+\frac {\left (-8 a^{2}-4 a b -3 b^{2}\right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{8 b^{3}}-\frac {1}{4 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{4}}+\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}-\frac {-4 a -b}{8 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}-\frac {4 a +3 b}{8 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}+\frac {\left (8 a^{2}+4 a b +3 b^{2}\right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{8 b^{3}}+\frac {2 a^{4} \left (\frac {\left (\sqrt {-b \left (a -b \right )}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}-\frac {\left (\sqrt {-b \left (a -b \right )}-b \right ) \arctanh \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{b^{3}}}{d}\) | \(417\) |
default | \(\frac {\frac {1}{4 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{4}}+\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}-\frac {4 a +b}{8 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {4 a +3 b}{8 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}+\frac {\left (-8 a^{2}-4 a b -3 b^{2}\right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{8 b^{3}}-\frac {1}{4 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{4}}+\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}-\frac {-4 a -b}{8 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}-\frac {4 a +3 b}{8 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}+\frac {\left (8 a^{2}+4 a b +3 b^{2}\right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{8 b^{3}}+\frac {2 a^{4} \left (\frac {\left (\sqrt {-b \left (a -b \right )}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}-\frac {\left (\sqrt {-b \left (a -b \right )}-b \right ) \arctanh \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{b^{3}}}{d}\) | \(417\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 716 vs.
\(2 (107) = 214\).
time = 0.49, size = 1725, normalized size = 14.26 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.68, size = 208, normalized size = 1.72 \begin {gather*} -\frac {\frac {64 \, a^{3} \arctan \left (\frac {b e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a - b}{2 \, \sqrt {-a^{2} + a b}}\right )}{\sqrt {-a^{2} + a b} b^{3}} - \frac {8 \, {\left (8 \, a^{2} + 4 \, a b + 3 \, b^{2}\right )} {\left (d x + c\right )}}{b^{3}} - \frac {b e^{\left (4 \, d x + 4 \, c\right )} - 8 \, a e^{\left (2 \, d x + 2 \, c\right )} - 8 \, b e^{\left (2 \, d x + 2 \, c\right )}}{b^{2}} + \frac {{\left (48 \, a^{2} e^{\left (4 \, d x + 4 \, c\right )} + 24 \, a b e^{\left (4 \, d x + 4 \, c\right )} + 18 \, b^{2} e^{\left (4 \, d x + 4 \, c\right )} - 8 \, a b e^{\left (2 \, d x + 2 \, c\right )} - 8 \, b^{2} e^{\left (2 \, d x + 2 \, c\right )} + b^{2}\right )} e^{\left (-4 \, d x - 4 \, c\right )}}{b^{3}}}{64 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.07, size = 266, normalized size = 2.20 \begin {gather*} \frac {x\,\left (8\,a^2+4\,a\,b+3\,b^2\right )}{8\,b^3}-\frac {{\mathrm {e}}^{-4\,c-4\,d\,x}}{64\,b\,d}+\frac {{\mathrm {e}}^{4\,c+4\,d\,x}}{64\,b\,d}+\frac {{\mathrm {e}}^{-2\,c-2\,d\,x}\,\left (a+b\right )}{8\,b^2\,d}-\frac {{\mathrm {e}}^{2\,c+2\,d\,x}\,\left (a+b\right )}{8\,b^2\,d}+\frac {a^{5/2}\,\ln \left (\frac {4\,a^3\,{\mathrm {e}}^{2\,c+2\,d\,x}}{b^4}-\frac {2\,a^{5/2}\,\left (b\,d+2\,a\,d\,{\mathrm {e}}^{2\,c+2\,d\,x}-b\,d\,{\mathrm {e}}^{2\,c+2\,d\,x}\right )}{b^4\,d\,\sqrt {a-b}}\right )}{2\,b^3\,d\,\sqrt {a-b}}-\frac {a^{5/2}\,\ln \left (\frac {4\,a^3\,{\mathrm {e}}^{2\,c+2\,d\,x}}{b^4}+\frac {2\,a^{5/2}\,\left (b\,d+2\,a\,d\,{\mathrm {e}}^{2\,c+2\,d\,x}-b\,d\,{\mathrm {e}}^{2\,c+2\,d\,x}\right )}{b^4\,d\,\sqrt {a-b}}\right )}{2\,b^3\,d\,\sqrt {a-b}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________